8a165915c5085e432e786699ea1c79e2a66e1263,sukija-voikko/src/main/java/peltomaa/sukija/voikko/VoikkoMorphologySuggestionFilterFactory.java,VoikkoMorphologySuggestionFilterFactory,VoikkoMorphologySuggestionFilterFactory,#Map#,52

Before Change


  public VoikkoMorphologySuggestionFilterFactory (Map<String,String> args)
  {
    super (args);
    dictionary     = PropertiesUtil.replacePropertyNameWithValue (args.get ("dictionary"));
    path           = PropertiesUtil.replacePropertyNameWithValue (args.get ("path"));
    libvoikkoPath  = PropertiesUtil.replacePropertyNameWithValue (args.get ("libvoikkoPath"));
    libraryPath    = PropertiesUtil.replacePropertyNameWithValue (args.get ("libraryPath"));
    suggestionFile = PropertiesUtil.replacePropertyNameWithValue (args.get ("suggestionFile"));
    success = Boolean.valueOf (PropertiesUtil.replacePropertyNameWithValue (args.get ("success")));
  }

After Change


public class VoikkoMorphologySuggestionFilterFactory extends TokenFilterFactory implements ResourceLoaderAware {
  /** Create a new VoikkoMorphologySuggestionFilterFactory.
   */
  public VoikkoMorphologySuggestionFilterFactory (Map<String,String> args)
  {
    super (args);
    dictionary     = get (args, "dictionary", "fi");
    path           = getValue (args, "path");
    libvoikkoPath  = getValue (args, "libvoikkoPath");
    libraryPath    = getValue (args, "libraryPath");
    suggestionFile = getValue (args, "suggestionFile");
    success = getBoolean (args, "success", false);

    LOG.info ("dictionary " + dictionary);
    LOG.info ("path " + path);
    LOG.info ("libvoikkoPath " + libvoikkoPath);
    LOG.info ("libraryPath " + libraryPath);
    LOG.info ("suggestionFile " + suggestionFile);
    LOG.info ("success " + success);
  }